#pragma once
#include <ltbasedefs.h>
#include "iltdrawprim.h"


class lens_flare
{
public:
	lens_flare(void);
	~lens_flare(void);
	void render();
	void set_camera(HOBJECT _obj){m_camera=_obj;}
	void set_sun_pos(const LTVector& _sunpos){m_sun_pos=_sunpos;}
private:
	HTEXTURE m_tex;
	void set_flare_pos();
	HOBJECT m_camera;
	LTVector m_sun_pos;
	LT_POLYGT4 m_poly[8];
	LTVector real_sun_pos;
	float lens_wide;
	float lens_long;

	LTRotation m_camera_rot;



	

};
